﻿/***************************************************************************
*		功能：     设备/车辆维护信息实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 设备/车辆维护信息
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_Maintain", EntityName = "Maintain")]
	public partial class Maintain :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return MaintainId == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// MaintainId
		/// </summary>
		[HColumn("MaintainId", Remake = "MaintainId", DataType = "numeric" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int MaintainId { set; get; }
        

		/// <summary>
		/// 类型
		/// </summary>
		[HColumn("Type", Remake = "类型", DataType = "int")]
		public int Type { set; get; }
        

		/// <summary>
		/// 车辆/设备Id
		/// </summary>
		[HColumn("DeviceId", Remake = "车辆/设备Id", DataType = "int")]
		public int DeviceId { set; get; }
        

		/// <summary>
		/// 维护时间
		/// </summary>
		[HColumn("Time", Remake = "维护时间", DataType = "datetime")]
		public DateTime Time { set; get; }
        

		/// <summary>
		/// 经手人
		/// </summary>
		[HColumn("Employee", Remake = "经手人", DataType = "nvarchar" , Length =50)]
		public string Employee { set; get; }
        

		/// <summary>
		/// 维护信息
		/// </summary>
		[HColumn("Content", Remake = "维护信息", DataType = "text" , IsNullable = true)]
		public string Content { set; get; }
        

		/// <summary>
		/// 备注
		/// </summary>
		[HColumn("Memo", Remake = "备注", DataType = "text" , IsNullable = true)]
		public string Memo { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// MaintainId
			 /// </summary>
			 public static Field MaintainId = new Field("T_Maintain","MaintainId");
	    	 

			 /// <summary>
			 /// 类型
			 /// </summary>
			 public static Field Type = new Field("T_Maintain","Type");
	    	 

			 /// <summary>
			 /// 车辆/设备Id
			 /// </summary>
			 public static Field DeviceId = new Field("T_Maintain","DeviceId");
	    	 

			 /// <summary>
			 /// 维护时间
			 /// </summary>
			 public static Field Time = new Field("T_Maintain","Time");
	    	 

			 /// <summary>
			 /// 经手人
			 /// </summary>
			 public static Field Employee = new Field("T_Maintain","Employee");
	    	 

			 /// <summary>
			 /// 维护信息
			 /// </summary>
			 public static Field Content = new Field("T_Maintain","Content");
	    	 

			 /// <summary>
			 /// 备注
			 /// </summary>
			 public static Field Memo = new Field("T_Maintain","Memo");
	    	 

        }
        #endregion
		  
	 
	}
    
}